package homework.homework_4.chartool;

/**
 * @author 朱
 * @date 2019032121:32
 */

/**
 * 3）定义类WeiXin，继承ChatTool类
 * 增加shake()方法，输出“WeiXin摇一摇”
 * send()方法：调用shake()方法，再输出“WeiXin发消息”
 * login()：输出“WeiXin登录”；exit()：输出“WeiXin退出”
 */
public class WeiXin extends CharTool {
    public String shake(){
        return "WeiXin摇一摇";
    }
    @Override
    public String login() {
        return "WeiXin登录";
    }

    @Override
    public String send() {
        System.out.println(shake());
        return "WeiXin发消息";
    }

    @Override
    public String exit() {
        return "WeiXin退出";
    }
}
